package com.ruoyi.client.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.client.mapper.SysUserOrderMapper;
import com.ruoyi.client.domain.SysUserOrder;
import com.ruoyi.client.service.ISysUserOrderService;

/**
 * 用户订单 Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-09-25
 */
@Service
public class SysUserOrderServiceImpl implements ISysUserOrderService 
{
    @Autowired
    private SysUserOrderMapper sysUserOrderMapper;

    /**
     * 查询用户订单 
     * 
     * @param orderId 用户订单 主键
     * @return 用户订单 
     */
    @Override
    public SysUserOrder selectSysUserOrderByOrderId(Long orderId)
    {
        return sysUserOrderMapper.selectSysUserOrderByOrderId(orderId);
    }

    /**
     * 查询用户订单 列表
     * 
     * @param sysUserOrder 用户订单 
     * @return 用户订单 
     */
    @Override
    public List<SysUserOrder> selectSysUserOrderList(SysUserOrder sysUserOrder)
    {
        return sysUserOrderMapper.selectSysUserOrderList(sysUserOrder);
    }

    /**
     * 新增用户订单 
     * 
     * @param sysUserOrder 用户订单 
     * @return 结果
     */
    @Override
    public int insertSysUserOrder(SysUserOrder sysUserOrder)
    {
        return sysUserOrderMapper.insertSysUserOrder(sysUserOrder);
    }

    /**
     * 修改用户订单 
     * 
     * @param sysUserOrder 用户订单 
     * @return 结果
     */
    @Override
    public int updateSysUserOrder(SysUserOrder sysUserOrder)
    {
        return sysUserOrderMapper.updateSysUserOrder(sysUserOrder);
    }

    /**
     * 批量删除用户订单 
     * 
     * @param orderIds 需要删除的用户订单 主键
     * @return 结果
     */
    @Override
    public int deleteSysUserOrderByOrderIds(Long[] orderIds)
    {
        return sysUserOrderMapper.deleteSysUserOrderByOrderIds(orderIds);
    }

    /**
     * 删除用户订单 信息
     * 
     * @param orderId 用户订单 主键
     * @return 结果
     */
    @Override
    public int deleteSysUserOrderByOrderId(Long orderId)
    {
        return sysUserOrderMapper.deleteSysUserOrderByOrderId(orderId);
    }
}
